package com.bookshop.pos.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

<<<<<<< HEAD
import com.bookshop.pos.view.MainFrame;

=======

<<<<<<< HEAD

=======
>>>>>>> 3122e71524196c522ffb516407622469f5b903e9
>>>>>>> 6d13660bc8d4376b4a4574bdf854320a587a3971
public class MainAction
{
	public static ActionListener clickCustomerInfoManager()
	{

		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				CustomerFrame customerFrame = new CustomerFrame();
				MainFrame.getMainFrame().getContentPane().add(customerFrame);
				customerFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickGoodsInfoManager()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				GoodsFrame goodsFrame = new GoodsFrame();
				MainFrame.getMainFrame().getContentPane().add(goodsFrame);
				goodsFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickProviderInfoManager()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				ProviderFrame privoderFrame = new ProviderFrame();
				MainFrame.getMainFrame().getContentPane().add(privoderFrame);
				privoderFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickCustomerInforserch()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				CustomerInforSearchFrame customerInforSearchFrame = new CustomerInforSearchFrame();
				MainFrame.getMainFrame().getContentPane().add(
						customerInforSearchFrame);
				customerInforSearchFrame.setVisible(true);
			}
		};
	}
	
	public static ActionListener clickGoodsInforserch()
	{
		return new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				GoodsInforSearchFrame goodsInforSearchFrame = new GoodsInforSearchFrame();
				MainFrame.getMainFrame().getContentPane().add(
						goodsInforSearchFrame);
				goodsInforSearchFrame.setVisible(true);
			}
		};
	}

	public static ActionListener clickPrivoderInforSearch()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				ProviderInforSearchFrame privoderInforSearchFrame = new ProviderInforSearchFrame();
				MainFrame.getMainFrame().getContentPane().add(
						privoderInforSearchFrame);
				privoderInforSearchFrame.setVisible(true);
			}
		};
	}
	
	
	
	public static ActionListener clickSaleInforSearch()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				SaleInforSearchFrame saleInforSearchFrame = new SaleInforSearchFrame();
				MainFrame.getMainFrame().getContentPane().add(
						saleInforSearchFrame);
				saleInforSearchFrame.setVisible(true);
			}
		};
	}
	

	
	public static ActionListener sales()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				SalesFrame salesFrame = new SalesFrame();
				MainFrame.getMainFrame().getContentPane().add(
						salesFrame);
				salesFrame.setVisible(true);
			}
		};
	}
<<<<<<< HEAD
=======
<<<<<<< HEAD
>>>>>>> 6d13660bc8d4376b4a4574bdf854320a587a3971
	
	public static ActionListener sales2()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				Cashier salesFrame = new Cashier(MainFrame.username);

			}
		};
	}
	
<<<<<<< HEAD
	public static ActionListener salesReturn()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				ReturnGoods returnGoods = new ReturnGoods();
			}
		}; 
	}
=======
	
=======
>>>>>>> 3122e71524196c522ffb516407622469f5b903e9
>>>>>>> 6d13660bc8d4376b4a4574bdf854320a587a3971

	
	public static ActionListener priceChange()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				PriceChangeFrame priceChangeFrame = new PriceChangeFrame();
				MainFrame.getMainFrame().getContentPane().add(
						priceChangeFrame);
				priceChangeFrame.setVisible(true);
			}
		};
	}
	
	
	public static ActionListener storeHouseInfor()
	{
		return new ActionListener()
		{
			
			public void actionPerformed(ActionEvent e)
			{
				StorehouseInfoFrame storehouseInfoFrame = new StorehouseInfoFrame();
				MainFrame.getMainFrame().getContentPane().add(
						storehouseInfoFrame);
				storehouseInfoFrame.setVisible(true);
			}
		};
	}
	

<<<<<<< HEAD
}
=======
}
>>>>>>> 6d13660bc8d4376b4a4574bdf854320a587a3971
